/**
 * 
 */
package com.sysmanage.etl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sysmanage.etl.dao.ExcelDao;
import com.sysmanage.etl.model.ETL_Excel;
import com.sysmanage.etl.service.IExcelService;
import com.sysmanage.framework.dao.hspring.DAOInterface;
import com.sysmanage.framework.service.BaseService;

/**
 * @author Yu Jou
 * 2014年7月10日
 */
@Service("execelService")
@Transactional
public class ExcelServiceImpl  extends BaseService<ETL_Excel> implements IExcelService {

	@Resource
	private ExcelDao excelDao;
	
	@Override
	public List<ETL_Excel> getAll() {
		return excelDao.findList("from ETL_Excel");
	}
	
	@Override
	public List<Integer> shops(String hql) {
		return excelDao.listShop(hql);
		
	}

	@Override
	protected DAOInterface<ETL_Excel> getDAO() {
		return excelDao;
	}

}
